package com.wzl.mixed.config;

import lombok.Data;

/**
 * 缓存上载脚本配置结构
 *
 * @author weizhongli
 * @since 1.0, 2023/05/04 11:20
 */
@Data
public class JsCacheMgrConfig {

    private String name;
    private int type;
    private String keyFields;

    public JsCacheMgrConfig copyBack() {
        JsCacheMgrConfig bak = new JsCacheMgrConfig();
        bak.type = this.type;
        bak.keyFields = this.keyFields;
        bak.name = this.name+"_Backup";
        return bak;
    }

}